package com.admin.controller;


import com.admin.pojo.Users;
import com.admin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

//@Controller
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    @RequestMapping("/show")
    public List<Users> Show(Map<String,Object> queryMap,int currentPage,int pageSize){
        return userService.selectAll( queryMap, currentPage, pageSize);
    }
}
